package com.x.chalk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description:
 * @Author: 邢朋辉
 * @Date: 2022/09/20 11:00:07
 */
@Data
@TableName("t_scorelog")
@NoArgsConstructor
public class Scorelog {
    /***/
    @TableId(type = IdType.AUTO)
    private Long id;
    /***/
    private Long uid;
    /**变动类型 1奖励 2消费*/
    private Integer type;
    /**积分*/
    private int score;
    /***/
    private String info;
    /***/
    private Date ctime;

    public Scorelog(Long uid, Integer type, int score, String info) {
        this.uid = uid;
        this.type = type;
        this.score = score;
        this.info = info;
        this.ctime=new Date();
    }
}